package com.wdb.modules.xxlJob.rest;

import com.wdb.annotation.rest.AnonymousGetMapping;
import com.wdb.modules.xxlJob.domain.dto.HotSearchDTO;
import com.wdb.modules.xxlJob.jobHandler.DouyinHotSearchJob;
import com.wdb.utils.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @author: wendaobai@qq.com
 * @date: 2024/9/12 星期四 16:54
 */
@RestController
@RequestMapping("/hot/search")
public class SearchController {
    @Autowired
    private DouyinHotSearchJob douyinHotSearchJob;
    @AnonymousGetMapping
    public ResponseEntity<Object> hotSearch(String paras) {
        ArrayList<HotSearchDTO> hotSearchDTOS = new ArrayList<>();
        HotSearchDTO douyinRes = douyinHotSearchJob.hotSearch("aaaa");
        hotSearchDTOS.add(douyinRes);
    return new ResponseEntity<>(hotSearchDTOS, HttpStatus.OK);
    }
}
